package com.robot.model;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

/**
 * Created with IntelliJ IDEA.
 * User: li
 * Date: 2019/9/22
 * Time: 16:23
 * PROJECT：robot
 * PACKAGE: com.robot
 *
 * @author:55324936@qq.com To change this template use File | Settings | File Templates.
 */
@Data
public class Protocol extends BaseEntity {
    /**
     * 组件别名
     * **/
    @NotBlank(message = "组件别名不能为空")
    private String interfaceAliasName;
    /**
     * http的url 或者 dubbo 接口名
     * **/
    @NotBlank(message = "接口名称不能为空")
    private String interfaceName;
    /**
     * http的post、get 或者dubbo 的自定义名
     * **/
    @NotBlank(message = "方法名称不能为空")
    private String interfaceMethod;
    private String encoding;
    private Integer timeout;
    /**
     * http的代理请求 或者dubbo 的ip端口
     * **/
    private String host;
    private String param;
    private String body;
    /**
     * http 的消息头。或者dubbo的zkAddress，共用一个字段
     * **/
    private String header;
    /**
     * 类型
     * **/
    private String interfaceType;
    /**
     * 项目id
     * **/
    private Integer projectId;
}
